package com.hyhy.hycloud.uaa.service;

import com.hyhy.hycloud.uaa.security.exception.UserNotFoundException;
import org.springframework.security.core.userdetails.UserDetails;

/**
 * Get User details By Mobile Finder
 *
 * @author Xuegui Yuan
 * @date 2018-09-19
 */
public interface UserDetailsByMobileFinder {

    /**
     * 通过手机号获取用户详情
     *
     * @param appId  APP ID
     * @param mobile 手机号
     * @return 用户详情
     * @throws UserNotFoundException 用户不存在异常
     */
    UserDetails findUserDetailsByMobile(String appId, String mobile) throws UserNotFoundException;
}
